package com.upcode.weighing.domain;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.upcode.weighing.base.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 字典表
 * </p>
 *
 * @author alex
 * @since 2019-04-12
 */
@ApiModel(value="字典信息", description="")
public class SysDict extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @JsonFormat(shape =JsonFormat.Shape.STRING )
    private Long id;

    /**
     * 类型ID
     */
    @JsonFormat(shape =JsonFormat.Shape.STRING )
    @ApiModelProperty("字典类型")
    private Long typeId;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sortNum;
    @ApiModelProperty("字典名称")
    private String name;
    @ApiModelProperty("字典值")
    private String value;

    /**
     * 1:正常，0：非正常
     */
    @ApiModelProperty("使用状态 1:正常，0：非正常")
    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }
    public String getStrId() {
        return id+"";
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }
    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysDict{" +
        "id=" + id +
        ", typeId=" + typeId +
        ", sortNum=" + sortNum +
        ", name=" + name +
        ", value=" + value +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
